package cn.xn.hrms.infrastructure.dao;

import java.util.Collection;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xn.hrms.api.dto.res.RoleDTO;

/**
 * @author ysz
 */
public interface RoleDao {

    int insertSelective(RoleDTO record);

    int updateByPrimaryKeySelective(RoleDTO record);

    List<RoleDTO> selectAll();

    List<RoleDTO> listPage(@Param("name") String name, @Param("description") String description);

    int updateIsDeletedByIdIn(@Param("updatedIsDeleted") Integer updatedIsDeleted, @Param("idCollection") Collection<Integer> idCollection);


}
